package com.qtcm.nas.wzh.dingdan.service.impl;

import com.qtcm.nas.wzh.dingdan.dao.ImpOrdersDao;
import com.qtcm.nas.wzh.dingdan.pojo.Orders;
import com.qtcm.nas.wzh.dingdan.service.IOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ordersService")
public class OrdersService implements IOrdersService {

    @Autowired
    @Qualifier("iOrdersDao")
    private ImpOrdersDao iOrdersDao;

    @Override
    public List<Orders> findAlll() {
        return iOrdersDao.findAlll();
    }

    @Override
    public List<Orders> findbyshangpin(int D_Comment_number) {
        return iOrdersDao.findbyshangpin(D_Comment_number);
    }

    @Override
    public int deletebyid(int J_letem_id) {
        return iOrdersDao.deletebyid(J_letem_id);
    }

    @Override
    public List<Orders> updatebyid(int D_Comment_number) {
        return iOrdersDao.updatebyid(D_Comment_number);
    }
}
